package com.sqlConnection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;


public class MyConnection {	
	public static Statement getStatement(){
		Connection connection = null;
		Statement statement = null;
		try {
			Class.forName("oracle.jdbc.driver.OracleDriver");
			connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
					"12345");
			statement = connection.createStatement();
		}catch (Exception e) {
			e.printStackTrace();
		}
		return statement; 
	}
}
